package com.zjitc.service.impl;

import com.zjitc.dao.CountryDao;
import com.zjitc.model.Country;
import com.zjitc.service.CountryService;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Create by IntelliJ IDEA
 *
 * @author: jsonor
 * @date-Time: 2018/3/20 16:01
 * @description:
 */
@Service
public class CountryServiceImpl implements CountryService {

  @Autowired
  private CountryDao countryDao;

  @Override
  public List<Country> findAll() {
    return countryDao.findAll();
  }

  @Override
  public int update(Country c) {
    return countryDao.update(c);
  }

  @Override
  public String  delete(String code) {
    return countryDao.delete(code);
  }

  @Override
  public int add(Country c) {
    return countryDao.add(c);
  }

  @Override
  public Country findByCode(String code) {
    return countryDao.findByCode(code);
  }

  @Override
  public Country showByCode(String code) {
    return countryDao.showByCode(code);
  }

}
